<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:fo="http://www.w3.org/1999/XSL/Format" >  
<xsl:output omit-xml-declaration="yes" method="text" indent="no"/>
<xsl:template match="/">
<xsl:for-each select="/REP_LENOBL_COMPPROCANDCONCCONTRACT/SHEET/RANGE_N">
<xsl:if test="ITEM[@NAME='type']/@VALUE!='row'">
<xsl:value-of select="concat(ITEM[@NAME='rbsName']/@VALUE,'&#xA;')"/>
</xsl:if>
<xsl:if test="ITEM[@NAME='type']/@VALUE='row'">
<xsl:value-of select="concat(ITEM[@NAME='rbsName']/@VALUE,';',ITEM[@NAME='sgozAmountSumm']/@VALUE,';',ITEM[@NAME='heldBidsContactAmountSumm']/@VALUE,';',ITEM[@NAME='heldBidsContactCount']/@VALUE,';',ITEM[@NAME='ordSingReasonContact_25_AmountSumm']/@VALUE,';',ITEM[@NAME='ordSingReasonContact_4_5_AmountSumm']/@VALUE,';',ITEM[@NAME='ordSingReasonContact_1_AmountSumm']/@VALUE,';',ITEM[@NAME='sumAmount']/@VALUE,'&#xA;')"/>
</xsl:if>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>